package com.app.utils;

import android.content.Context;
import android.text.TextUtils;

import com.lepu.pasm.BuildConfig;
import com.lepu.pasm.R;

/*
 * 放网络请求的url地址，每个接口需要加上注释
 */
public class Setting {

	/**
	 * IConstants 这个类也有需要配置的
	 */

	// public static final boolean DEBUG = BuildConfig.DEBUG;//
	// BuildConfig.DEBUG
	public static final boolean DEBUG = true;// BuildConfig.DEBUG  false
	public static final boolean NeedCrashLog = true;//true
	public static final boolean NeedCustomLog = true;//false
	public static final boolean UmengDebug = true;//false
	// ===================================================================================
	private final static String HTTP = "http://";
	private final static String HTTPS = "https://";
	private final static String SPLIT = "/";

	// ==========================================================================================================
	/*
	 * app接口环境
	 */
	// url
	// doctor url
	private static final String HOST_DOCTOR_DEV = "192.168.21.31:8100/health-service";// 开发环境
	private static final String HOST_DOCTOR_TEST = "apitest.askdoctor.ixinzang.com";// 测试环境
	private static final String HOST_DOCTOR_ONLINE_R = "apiaskdr.r.ixinzang.com";// 预环境
	private static final String HOST_DOCTOR_ONLINE = "apiaskdr.ixinzang.com";// 发布环境

	// ===========================================
	// main url
	private static final String HOST_DEV = "192.168.21.101:8010";// 开发环境
	private static final String HOST_TEST = "api.t.ixinzang.com";// 测试环境
	private static final String HOST_ONLINE_TEST = "api.test.ixinzang.com";// 外边可以访问的环境
	private static final String HOST_ONLINE = "api.ixinzang.com";// 发布环境
	private static final String HOST_ONLINE_R = "api.r.ixinzang.com";// 预发布环境

	// detail
	private static final String HOST_DETAIL_DEV = "http://192.168.21.102:8012";
	private static final String HOST_DETAIL_TEST = "http://www.t.ixinzang.com";
	private static final String HOST_DETAIL_ONLINE = "http://www.ixinzang.com";
	private static final String HOST_DETAIL_ONLINE_R = "http://www.r.ixinzang.com";

	// image
	private static final String HOST_DEV_IMG = "192.168.21.102:8012.ixinzang.com";
	private static final String HOST_TEST_IMG = "img.t.ixinzang.com";
	private static final String HOST_ONLINE_TEST_IMG = "img.test.ixinzang.com";
	private static final String HOST_ONLINE_IMG = "img.ixinzang.com";

	// chat
	private static final String HOST_CHAT_TEST = "im.t.ixinzang.com";// 192.168.21.156  im.t.ixinzang.com
	private static final String HOST_CHAT_ONLINE_R = "im.r.ixinzang.com";// online_r
	private static final String HOST_CHAT_ONLINE = "im.ixinzang.com";// online
	public static final int CHAT_SERVICE_PORT = 5222;//5222

	private static final String HOST_CHAT_DOMAIN_TEST = "openfire1";
	private static final String HOST_CHAT_DOMAIN_ONLINE_R = HOST_CHAT_ONLINE_R;
	private static final String HOST_CHAT_DOMAIN_ONLINE = HOST_CHAT_ONLINE;

	//sui xin zhen  h5
	private static final String HOST_SUI_XIN_ZHEN_H5_DEV = "192.168.22.213:8080/asd_www";
	private static final String HOST_SUI_XIN_ZHEN_H5_TEST = "mtest.suixinzhen.com";
	private static final String HOST_SUI_XIN_ZHEN_H5_ONLINE = "m.suixinzhen.com";
	private static final String HOST_SUI_XIN_ZHEN_H5_ONLINE_R = "m.r.suixinzhen.com";

	//sui xin zhen  api
	private static final String HOST_SUI_XIN_ZHEN_DEV = "192.168.22.213:8080/asd_api";
	private static final String HOST_SUI_XIN_ZHEN_TEST = "apitest.suixinzhen.com";
	private static final String HOST_SUI_XIN_ZHEN_ONLINE = "api.suixinzhen.com";
	private static final String HOST_SUI_XIN_ZHEN_ONLINE_R = "api.r.suixinzhen.com";

	// can modify
	private final static String HOST_DOCTOR = DEBUG ? HOST_DOCTOR_TEST
			: HOST_DOCTOR_ONLINE;
	public static final String CHAT_SERVICE_HOST = DEBUG ? HOST_CHAT_TEST
			: HOST_CHAT_ONLINE;
	public static final String CHAT_SERVICE_HOST_DOMAIN = DEBUG ? HOST_CHAT_DOMAIN_TEST
			: HOST_CHAT_DOMAIN_ONLINE;
	private final static String HOST = DEBUG ? HOST_TEST
			: HOST_ONLINE;// 配置上线是什么环境！！！！！！！！！！！！！！！！！！！！！！！！
	public final static String HOST_DETAIL = DEBUG ? HOST_DETAIL_TEST
			: HOST_DETAIL_ONLINE;// 配置上线是什么环境
	public final static String HOST_SUI_XIN_ZHEN_H5 = DEBUG ? HOST_SUI_XIN_ZHEN_H5_TEST
			: HOST_SUI_XIN_ZHEN_H5_ONLINE;// 配置上线是什么环境
	public final static String HOST_SUI_XIN_ZHEN = DEBUG ? HOST_SUI_XIN_ZHEN_TEST
			: HOST_SUI_XIN_ZHEN_ONLINE;// 配置上线是什么环境

	//===================================================
	private final static String HOST_IMG = DEBUG ? HOST_TEST_IMG
			: HOST_ONLINE_IMG;
	private final static String IMG_FOLDER_NAME = DEBUG ? "group1"
			: "IXZAVATAR";
	// ==============================================================
	//public final static String URL_CHAT_HOST = CHAT_SERVICE_HOST + SPLIT;// chat
	public final static String URL_API_HOST_HTTP_DOCTOR = HTTP + HOST_DOCTOR + SPLIT;// http doctor
	public final static String URL_API_HOST_HTTP = HTTPS + HOST + SPLIT;// https
																		// main
	public final static String URL_API_HOST_HTTP_IMG = HTTP + HOST_IMG + SPLIT;// image
	public final static String URL_API_HOST_DETAIL_HTTP = HOST_DETAIL + SPLIT;// detail

	public final static String URL_API_HOST_HTTP_SUI_XIN_ZHEN_H5 = HTTP + HOST_SUI_XIN_ZHEN_H5 + SPLIT;// http
	public final static String URL_API_HOST_HTTP_SUI_XIN_ZHEN = HTTP + HOST_SUI_XIN_ZHEN + SPLIT;// http
	// ==========================================================================================
	// share
	public static String SHARE_BASE_DETAIL_URL = HOST_DETAIL
			+ "/appShare/%s?detailID=%s&UserId=%s&LoginToken=%s";
	// ========================================
	public static final int DEVICEID = 2;// android
	public static final int APPLICATIONID = 4;
	public static final int PAGE_SIZE = 25;

	public static String TELL_PHONE = "4000-898-898";

	public static int getBranchID(Context context){
		int branchID = 1;//default 1

		int majiaType = Utils.getMaJiaType(context);
		if(majiaType > 0)
		{
			branchID = majiaType;
		}

		return branchID;
	}

	public static String getUploadLogUrl() {
		return "";
	}

	public static String getShareBaseContent(Context context) {
		StringBuffer sb = new StringBuffer();
		sb.append("我在");
		sb.append(context.getString(R.string.app_name));
		sb.append("APP解决了心脏支架术后遇到的问题，你也可以试试，免费的！");
		//sb.append(getAppOfficialUrl());
		return sb.toString();
	}

	public static String getAppOfficialUrl() {
		return "http://dl.ixinzang.com/pasm/appshare/index.html";
	}

	//使用月子分享url
	public static String getShareTopicUrl() {
		return URL_API_HOST_DETAIL_HTTP + "appShare/forum/forum.jsp?";
	}

	/*
	 * 分享文章详情
	 */
	public static String getShareArticleUrl(String detailId, String userId,
			String loginToken) {
		return String.format(SHARE_BASE_DETAIL_URL, "article.jsp", detailId,
				userId, loginToken);
	}

	/*
	 * 分享抽奖详情
	 */
	public static String getShareRaffleUrl(String detailId, String userId,
			String loginToken) {
		return String.format(SHARE_BASE_DETAIL_URL, "raffle.jsp", detailId,
				userId, loginToken);
	}

	/*
	 * 分享活动详情
	 */
	public static String getShareActivityUrl(String detailId, String userId,
			String loginToken) {
		return String.format(SHARE_BASE_DETAIL_URL, "activity.jsp", detailId,
				userId, loginToken);
	}


	/*
	 * 分享抽奖
	 */
	public static String getShareSuccessUrl() {
		return URL_API_HOST_HTTP + "share/notifyShare";
	}

	/*
	 * test 接口
	 */
	public static String getTestJsonUrl(int page) {
		return String
				.format("http://api.shidaiyinuo.com?api=0&app=nursetf&method=getHospitalList&checkcode=abc&from=1&page=%d",
						page);
	}

	// ==================================================================

	/*
	 * 获取图片接口
	 */
	public static String getImageUrl(String imageUrl) {
		String url = "";
		if (!TextUtils.isEmpty(imageUrl)) {
			if (imageUrl.startsWith("http://")) {
				url = imageUrl;
			} else {
				url = URL_API_HOST_HTTP_IMG + imageUrl;
			}
		}
		return url;
	}

	/*
	 * 获取头像url
	 */
	public static String getHeadIconUrl(String userID) {
		String url = "";
		if (!TextUtils.isEmpty(userID)) {
			String splitUserId = "";
			if (userID.length() == 1) {
				splitUserId = "0" + userID;
			} else {
				splitUserId = String
						.valueOf(userID.charAt(userID.length() - 2))
						+ String.valueOf(userID.charAt(userID.length() - 1));
			}

			StringBuffer sb = new StringBuffer();
			sb.append(URL_API_HOST_HTTP_IMG);
			sb.append(IMG_FOLDER_NAME);
			sb.append("/M00/FF/");
			sb.append(splitUserId);
			sb.append("/pasmComUserAvatarMasterPath888_");
			sb.append(userID);
			sb.append(".png");

			url = sb.toString();
		}
		return url;
	}

	/*
	 * 获取app start
	 */
	public static String getAppStartUp() {
		return URL_API_HOST_HTTP + "system/startup3";
	}

	/*
	 * 获取检查更新接口
	 */
	public static String getCheckUpdate() {
		return URL_API_HOST_HTTP + "system/checkUpdate3";
	}

	/*
	 * 获取RegisterUrl
	 */
	public static String getRegisterUrl() {
		return URL_API_HOST_HTTP + "user/register2";
	}

	/*
	 * 获取bondUrl
	 */
	public static String getBondUrl() {
		return URL_API_HOST_HTTP + "user/bindMobilePhone";
	}

	/*
	 * 第三方用户登录
	 */
	public static String getThirdpartyLogin() {
		return URL_API_HOST_HTTP + "user/thirdpartyLogin";
	}

	/*
	 * 第三方用户登录bond
	 */
	public static String getThirdpartyBind() {
		return URL_API_HOST_HTTP + "user/thirdpartyBind";
	}

	/*
	 * 获取RegisterCodeUrl 获取验证码
	 */
	public static String getRegisterCodeUrl() {
		return URL_API_HOST_HTTP + "user/sendRegisterCAPTCHA2";
	}

	/*
	 * 获取ResetPasswordCodeUrl 获取重置密码验证码
	 */
	public static String getResetPasswordCodeUrl() {
		return URL_API_HOST_HTTP + "user/sendResetPasswordCAPTCHA"; //new resetPasswordByCAPTCHA
	}

	/*
	 * 获取ResetPasswordCodeUrl 获取 用户通过验证短信重置密码
	 */
	public static String getResetPasswordByCodeUrl() {
		return URL_API_HOST_HTTP + "user/resetPasswordByCAPTCHA";
	}

	/*
	 * 获取PwdQuestionUrl 获取密保问题
	 */
	public static String getPwdQuestionUrl() {
		return URL_API_HOST_HTTP + "user/getSecurityQuestionList";
	}

	/*
	 * 获取PwdQuestionByPhoneUrl 获取用户绑定密保问题列表
	 */
	public static String getPwdQuestionByPhoneUrl() {
		return URL_API_HOST_HTTP + "user/getUserSecurityQuestionList";
	}

	/*
	 * 获取ByPwdQuestionUrl 获取 通过密保问题修改密码
	 */
	public static String getResetPwdByPwdQuestionUrl() {
		return URL_API_HOST_HTTP + "user/resetPasswordBySecurityQuestion";
	}

	/*
	 * 获取UpdateSecurityQuestionUrl 获取 更新密保问题
	 */
	public static String getUpdateSecurityQuestionUrl() {
		return URL_API_HOST_HTTP + "user/updateSecurityQuestion";
	}

	/*
	 * 获取ModifyPwdUrl 获取 修改密码接口
	 */
	public static String getModifyPwdUrl() {
		return URL_API_HOST_HTTP + "user/editUserPassword";
	}

	/*
	 * 获取FeedbackUrl 获取 意见反馈接口
	 */
	public static String getFeedbackUrl() {
		return URL_API_HOST_HTTP + "other/advice";
	}

	// ==================================================================

	/*
	 * 获取LoginUrl
	 */
	public static String getLoginUrl() {
		return URL_API_HOST_HTTP + "user/pasmLogin2";
	}

	/*
	 * 获取 完善用户信息接口
	 */
	public static String getModifyUserInfoUrl() {
		return URL_API_HOST_HTTP + "user/postProfile";
	}

	/*
	 * 获取 完善用户信息接口
	 */
	public static String getUpdateNickNameUrl() {
		return URL_API_HOST_HTTP + "user/updateUserNickName";
	}

	/*
	 * 获取 修改用户头像接口
	 */
	public static String getUserHeadIconUrl() {
		return URL_API_HOST_HTTP + "user/uploadAvatar2";
	}

	// ===============================album================================
	/*
	 * 上传图片 文字 接口
	 */
	public static String getAddPhotoUrl() {
		return URL_API_HOST_HTTP + "album/addPhoto";
	}

	/*
	 * 修改图片 文字 接口
	 */
	public static String getModifyPhotoUrl() {
		return URL_API_HOST_HTTP + "album/editPhoto";
	}

	/*
	 * 获取 申请热门相册
	 */
	public static String getShareAlbumUrl() {
		return URL_API_HOST_HTTP + "album/shareAlbum2";
	}

	/*
	 * 获取热门相册列表
	 */
	public static String getHotPhotoListUrl() {
		return URL_API_HOST_HTTP + "album/getShareAlbumList";
	}

	/*
	 * 获取热门相册 评论列表
	 */
	public static String getCommentsHotPhotoUrl() {
		return URL_API_HOST_HTTP + "album/getReplyList";
	}

	/*
	 * 获取热门相册 详情
	 */
	public static String getHotPhotoDetailUrl() {
		return URL_API_HOST_HTTP + "album/getAlbumDetail";
	}

	/*
	 * 获取发表热门相册评论
	 */
	public static String getPubCommentHotPhotoUrl() {
		return URL_API_HOST_HTTP + "album/userReply";
	}

	/*
	 * 获取赞热门相册
	 */
	public static String getLikeHotPhotoUrl() {
		return URL_API_HOST_HTTP + "album/favourAlbum";
	}

	/*
	 * 获取取消赞热门相册
	 */
	public static String getCancelLikeHotPhotoUrl() {
		return URL_API_HOST_HTTP + "album/cancelFavourAlbum";
	}

	/*
	 * 获取修改相册名称
	 */
	public static String getModiyAlbumNameUrl() {
		return URL_API_HOST_HTTP + "album/editAlbumName";
	}

	/*
	 * 获取修改相册音乐
	 */
	public static String getModiyAlbumMusicUrl() {
		return URL_API_HOST_HTTP + "album/selectAlbumMusic";
	}

	/*
	 * 获取修改相册封面
	 */
	public static String getModiyAlbumCoverUrl() {
		return URL_API_HOST_HTTP + "album/editAlbumCover";
	}

	// -=======================mother=================
	/*
	 * 获取文章列表
	 */
	public static String getArticleListUrl() {
		return URL_API_HOST_HTTP + "article/getArticleList2";
	}

	/*
	 * 获取文章列表详情
	 */
	public static String getArticleDetailUrl() {
		return URL_API_HOST_HTTP + "article/getArticleDetail2";
	}

	/*
	 * 获取帖子列表
	 */
	public static String getPostListUrl() {
		return URL_API_HOST_HTTP + "bbs/getHotTopicList";
	}

	/*
	 * 搜索帖子列表
	 */
	public static String getSearchListUrl() {
		return URL_API_HOST_HTTP + "forum/searchThreadList";
	}

	/*
	 * 获取主题列表
	 */
	public static String getBbsListUrl() {
		return URL_API_HOST_HTTP + "forum/getThreadList";
	}

	/*
	 * 获取主题列表
	 */
	public static String getBbsHotListUrl() {
		return URL_API_HOST_HTTP + "forum/getHotThreadList";
	}

	/*
	 * 获取主题详情
	 */
	public static String getBbsDetailUrl() {
		return URL_API_HOST_HTTP + "forum/getThreadDetail";
	}

	/*
	 * 评论点赞
	 */
	public static String getBbsFavorUrl() {
		return URL_API_HOST_HTTP + "forum/favourThread";
	}

	/*
	 * 评论取消赞
	 */
	public static String getBbsFavorCannelUrl() {
		return URL_API_HOST_HTTP + "forum/cancelFavourThread";
	}

	/*
	 * 评论回复
	 */
	public static String getBbsCommentUrl() {
		return URL_API_HOST_HTTP + "forum/replayPost";
	}

	/*
	 * 获取圈子精华
	 */
	public static String getTopicGoodListUrl() {
		return URL_API_HOST_HTTP + "bbs/getGoodTopicList";
	}

	/*
	 * 获取用户主题列表
	 */
	public static String getMyTopicListUrl() {
		return URL_API_HOST_HTTP + "bbs/getTopicListByUser";
	}

	/*
	 * 获取我的热门相册列表
	 */
	public static String getMyShareAlbumListUrl() {
		return URL_API_HOST_HTTP + "album/getAlbumListByUser";
	}

	/*
	 * 获取我的主题详情
	 */
	public static String getMyTopicDetailUrl() {
		return URL_API_HOST_HTTP + "bbs/getTopic2";
	}

	/*
	 * 获取 赞
	 */
	public static String getFavourTopicUrl() {
		return URL_API_HOST_HTTP + "bbs/favourTopic";
	}

	/*
	 * 获取 取消 赞
	 */
	public static String getCancelFavourTopicUrl() {
		return URL_API_HOST_HTTP + "bbs/cancelFavourTopic";
	}

	/*
	 * 获取 评论列表
	 */
	public static String getReplyListUrl() {
		return URL_API_HOST_HTTP + "bbs/getReplyList2";
	}

	/*
	 * 获取 发表评论
	 */
	public static String getSubmitReplyUrl() {
		return URL_API_HOST_HTTP + "bbs/submitReply";
	}

	/*
	 * 获取 发表主题内容
	 */
	public static String getSubmitTopicUrl() {
		return URL_API_HOST_HTTP + "forum/submitThread";
	}
	/*
	 * 更新 发表主题内容
	 */
	public static String getUpdateTopicUrl() {
		return URL_API_HOST_HTTP + "forum/updateThread";
	}

	/*
	 * 获取 发表主题资源
	 */
	public static String getUploadMediaUrl() {
		return URL_API_HOST_HTTP + "forum/uploadThreadMedia";
	}

	/*
	 * 获取圈子列表
	 */
	public static String getCircleListUrl() {
		return URL_API_HOST_HTTP + "bbs/getBBSCategoryList";
	}

	/*
	 * 加入圈子
	 */
	public static String getCircleAddUrl() {
		return URL_API_HOST_HTTP + "bbs/userJoinBBSCategory";
	}

	/*
	 * 退出圈子
	 */
	public static String getCircleExitUrl() {
		return URL_API_HOST_HTTP + "bbs/userQuitBBSCategory";
	}

	/*
	 * 获取 科学孕育
	 */
	public static String getKnowledgeUrl() {
		return URL_API_HOST_HTTP + "tabData/getKXYYTab";
	}

	/*
	 * 获取 母婴医院数据
	 */
	public static String getHospitalUrl() {
		return URL_API_HOST_HTTP + "tabData/getYZHSTab2";
	}

	public static String getNewInnerMessageList() {
		return URL_API_HOST_HTTP + "push/getNewInnerMessageList";
	}

	/*
	 * 获取妈妈圈 最新数据
	 */
	public static String getMotherNewMessageListUrl() {
		return URL_API_HOST_HTTP + "bbs/getNewMessageList2";
	}

	/*
	 * 获取成长喜悦 最新数据
	 */
	public static String getGrowNewMessageListUrl() {
		return URL_API_HOST_HTTP + "album/getNewMessageList2";
	}

	/****************************************/

	/*
	 * 获取我的聊天列表
	 */
	public static String getAutoResponseUrl() {
		return URL_API_HOST_HTTP + "autoResponse/getAutoResponse";
	}

	/**
	 * 获取问题列表 聊天
	 * 
	 * @return
	 */
	public static String getQuestionListUrl() {
		return URL_API_HOST_HTTP + "consult/getConsultQuestionList";
	}

	/**
	 * 在线咨询 提交问题
	 * 
	 * @return
	 */
	public static String updateQuestionUrl() {
		return URL_API_HOST_HTTP + "consult/submitConsultQuestion";
	}

	/**
	 * 获取用户在线咨询状态
	 * 
	 * @return
	 */
	public static String getQuestionStatuUrl() {
		return URL_API_HOST_HTTP + "consult/getQuestionStatus";
	}

	/**
	 * 删除用户问题
	 * 
	 * @return
	 */
	public static String getDeleteQuestionUrl() {
		return URL_API_HOST_HTTP + "consult/deleteQuestion";
	}

	/*
	 * 获取我的常见问题
	 */
	public static String getAllQuestionsUrl() {
		return URL_API_HOST_HTTP + "autoResponse/getQuestionAnswerResponse2";
	}

	/*
	 * 获取 搜索我的文章
	 */
	public static String getSearchArticlesUrl() {
		return URL_API_HOST_HTTP + "article/searchArticle";
	}

	/*
	 * 获取 删除主题资源
	 */
	public static String getDeleteTopicUrl() {
		return URL_API_HOST_HTTP + "bbs/deleteTopic";
	}

	// ===================================
	/*
	 * 获取 删除主题资源
	 */
	public static String getDeleteHotPhotoUrl() {
		return URL_API_HOST_HTTP + "album/deleteShareAlbum";
	}

	/*
	 * 获取当月是否有数据
	 */
	public static String getGrowMonthDateUrl() {
		return URL_API_HOST_HTTP + "album/getDataMonth";
	}

	/*
	 * 获取同步所有数据接口
	 */
	public static String getGrowSyncByTimeUrl() {
		return URL_API_HOST_HTTP + "album/syncByTime";
	}

	/*
	 * 获云端同步到app接口 download
	 */
	public static String getSyncToAppUrl() {
		return URL_API_HOST_HTTP + "album/syncToApp";
	}

	/*
	 * 获取app同步到云端接口 upload
	 */
	public static String getSyncToCloudUrl() {
		return URL_API_HOST_HTTP + "album/syncToCloud";
	}

	/*
	 * 获取 抽奖活动详情
	 */
	public static String getLotteryDetailUrl() {
		return URL_API_HOST_HTTP + "raffle/getRaffleDetail";
	}

	/*
	 * 获取 立即抽奖
	 */
	public static String getLotteryUrl() {
		return URL_API_HOST_HTTP + "raffle/userRaffle";
	}

	/************************************************************************************/

	public static String getUploadFileURL() {
		return URL_API_HOST_HTTP + "upload/uploadFile";
	}

	public static String getXmppImageUrl(String s) {
		return "";
	}

	/*
	 * 获取 我的地址
	 */
	public static String getMyAddressUrl() {

		return URL_API_HOST_HTTP + "user/getUserAddressList";
	}

	public static String getSaveUserAddressUrl() {
		return URL_API_HOST_HTTP + "user/saveUserAddress";
	}

	public static String getUpdateUserAddressUrl() {
		return URL_API_HOST_HTTP + "user/updateUserAddress";
	}

	public static String getDeleteUserAddressUrl() {
		return URL_API_HOST_HTTP + "user/deleteUserAddress";
	}

	/*
	 * 获取 我的总积分
	 */
	public static String getMyUserInfoUrl() {

		return URL_API_HOST_HTTP + "user/getProfile3";
	}

	/*
	 * 获取 签到
	 */
	public static String getMySignInUrl() {

		return URL_API_HOST_HTTP + "user/signIn";
	}

	public static String useReportUrl() {
		return URL_API_HOST_HTTP + "report/report";
	}

	public static String getCheckNickNameIsAvailable() {
		return URL_API_HOST_HTTP + "user/checkNickNameIsAvailable";
	}

	public static String getTirdpartyAccountList() {
		return URL_API_HOST_HTTP + "user/getTirdpartyAccountList";
	}

	public static String getBindTirdpartyAccount() {
		return URL_API_HOST_HTTP + "user/bindTirdpartyAccount";
	}

	public static String getFeedbackListUrl() {

		return URL_API_HOST_HTTP + "other/getAdviceList";
	}

	/*
	 * 金币商场
	 */
	public static String getMarketBindUrl() {
		return URL_API_HOST_HTTP + "hst/user/hstBind";
	}

	/*
	 * 商场
	 */
	public static String getMarketReBindUrl() {
		return URL_API_HOST_HTTP + "hst/user/hstRebind";
	}

	/*
	 * 积分规则url
	 */
	public static String getJifenRuleUrl() {
		return "http://dl.ixinzang.com/pasm/creditsRule/index.html";
	}

	/*
	 * 粉丝 关注列表 url
	 */
	public static String getMyFensiAndGuanZhuUrl() {
		return URL_API_HOST_HTTP + "user/getRelationUserList";
	}

	/*
	 * 关注,粉丝界面
	 */
	public static String getUserFollowFansUrl() {
		return URL_API_HOST_HTTP + "user/getUserHomePage";
	}

	/*
	 * 关注
	 */
	public static String getUserFollowUrl() {
		return URL_API_HOST_HTTP + "user/followUser";
	}

	/*
	 * 取消关注
	 */
	public static String getUserFollowCancelUrl() {
		return URL_API_HOST_HTTP + "user/cancelFollowUser";
	}

	/*
	 * 积分明细
	 */
	public static String getScoreInfoUrl() {
		return URL_API_HOST_HTTP + "user/getCreditsHistory";
	}

	/*
	 * 获取邀请码分享url
	 */
	public static String getYaoQingShareUrl(String userID) {
		return URL_API_HOST_DETAIL_HTTP + "invitation/" + userID;
	}

	/*
	 * 健康商场
	 */
	public static String getHealthMarketBindUrl() {
		return URL_API_HOST_HTTP + "hst/getHSTParam";
	}

	/*
	 * 启动日志接口
	 */
	public static String getStartupLogUrl() {
		return URL_API_HOST_HTTP + "system/startupLog";
	}

	/*
	 * 获取修改手机
	 */
	public static String getMobileModifyUrl() {
		return URL_API_HOST_HTTP + "user/pasmLogin2";
	}

	/*
	 * 获取个人资料就诊医院
	 */
	public static String getMyUserInfoHospitalUrl() {
		return URL_API_HOST_HTTP + "system/getInstitutionListByName";
	}

	/*
	 * 获取个人资料科室
	 */
	public static String getMyUserInfoKeShiUrl() {
		return URL_API_HOST_HTTP
				+ "institution/getInstitutionByParentInstitution";
	}

	/*
	 * 获取个人资料保存接口
	 */
	public static String getMyUserInfoSaveUrl() {
		return URL_API_HOST_HTTP + "user/pasmPostProfile3";
	}

	/*
	 * 获取验证码
	 */
	public static String getCommonCodeUrl() {
		return URL_API_HOST_HTTP + "user/sendResetLoginIDCAPTCHA";
	}

	/*
	 * 获取修改手机号
	 */
	public static String getUpdateLoginIDUrl() {
		return URL_API_HOST_HTTP + "user/updateLoginID";
	}

	/*
	 * add收藏 common
	 */
	public static String getUserCollectAddUrl() {
		return URL_API_HOST_HTTP + "collection/saveCollection";
	}

	/*
	 * 取消收藏 common
	 */
	public static String getUserCollectCancelUrl() {
		return URL_API_HOST_HTTP + "collection/deleteCollection";
	}

	/*
	 * 收藏文章列表 视频列表 帖子列表
	 */
	public static String getUserCollectListUrl() {
		return URL_API_HOST_HTTP + "collection/listCollection";
	}

	/*
	 * 获取视频详情
	 */
	public static String getVideoDetailUrl(String ArticleID, String UserID) {
		String format = String.format(
				"article/videoPicksDetail?ArticleID=%s&UserID=%s", ArticleID,
				UserID);

		return URL_API_HOST_DETAIL_HTTP + format;
	}

	/*
	 * add question help
	 */
	public static String getUserQuestionHelpAddUrl() {
		return URL_API_HOST_HTTP + "autoResponse/addViewFavourCount";
	}

	/*
	 * add Article help
	 */
	public static String getUserArticleHelpAddUrl() {
		return URL_API_HOST_HTTP + "article/addFavourCount";
	}

	/*
	 * add Article help
	 */
	public static String getThreadListByUserUrl() {
		return URL_API_HOST_HTTP + "forum/getThreadListByUser";
	}

	/*
	 * 获取首页展示数据
	 */
	public static String getIndexDataUrl() {
		return URL_API_HOST_HTTP + "pasm/getHomeData";
	}



	public static String getMyYouHuiQuanUrl(String UserID) {
		return URL_API_HOST_DETAIL_HTTP
				+ String.format(
						"coupon/CouponListInit?UserID=%s&DeviceID=%d&ApplicationID=%d",
						UserID, Setting.DEVICEID, Setting.APPLICATIONID);

	}

	public static String getMyHelpUrl() {
		return "http://dl.ixinzang.com/pasm/usingHelp/index.html";
	}

	/*
	 * get用户活动列表
	 */
	public static String getUserActivityListUrl() {
		return URL_API_HOST_HTTP + "osmsActivity/getUserActivityList2";
	}

	/*
	 * get活动列表
	 *
	 */
	public static String getActivityListUrl() {
		return URL_API_HOST_HTTP + "osmsActivity/getActivityList3";
	}

	/*
	 * 申请用户报名活动
	 */
	public static String getUserApplyActivityUrl() {
		return URL_API_HOST_HTTP + "osmsActivity/userApplyActivity";
	}

	/*
	 * get用户活动详情
	 */
	public static String getActivityDetailUrl() {
		return URL_API_HOST_HTTP + "osmsActivity/getActivityDetail5";
	}

	/*
	 * get消息数量
	 */
	public static String getMassegeCountUrl() {
		return URL_API_HOST_HTTP + "message/getUserMessageCount";
	}

	/*
	 * 系统消息数据
	 */
	public static String getSystemDataUrl() {
		return URL_API_HOST_HTTP + "message/getSystemMessageList";
	}

	/*
	 * get消息
	 */
	public static String getMassegeListUrl() {
		return URL_API_HOST_HTTP + "message/getUserMessageList";
	}

	/*
	 * get消息帖子
	 */
	public static String getMassegeBbsListUrl() {
		return URL_API_HOST_HTTP + "forum/getUserEventList";
	}

	// /========================================
	public static String getUserDoctorListUrl() {
		return URL_API_HOST_HTTP + "doctor/getUserDoctorList";
	}

	public static String getUserDoctorDetailUrl() {
		return URL_API_HOST_HTTP + "doctor/getDoctorProfile";
	}

	/*
	 * 通过手机号添加医生
	 */
	public static String bindDoctorByMobilePhoneUrl() {
		return URL_API_HOST_HTTP + "doctor/bindDoctorByMobilePhone";
	}

	/*
	 * 通过扫描二维码添加医生
	 */
	public static String bindDoctorUrl() {
		return URL_API_HOST_HTTP + "doctor/bindDoctor";
	}

	public static String getMyDoctorNewNoticeListUrl() {
		return URL_API_HOST_HTTP_DOCTOR + "doctor/getMyDoctorNoticeList";
	}

	/**
	 * 寻医 解除医患关系
	 * 
	 * @return
	 */
	public static String getUserDoctorDetailReleaseUrl() {
		return URL_API_HOST_HTTP_DOCTOR + "patient/deleteDoctorRelease";
	}

	/**
	 * 寻医 医患关系change
	 *
	 * @return
	 */
	public static String getUserDoctorRelationHistoryUrl() {
		return URL_API_HOST_HTTP + "user/getMyDoctorRelationHistory";
	}

	public static String getContactDoctorUrl() {
		return URL_API_HOST_HTTP + "contact/getDoctor";
	}

	// 获取健康日志
	public static String getIndexFileLog() {
		return URL_API_HOST_HTTP + "healthrecord/healthRecordSyncList";
	}

	// 上传健康日志
	public static String getIndexFileLogUp() {
		return URL_API_HOST_HTTP + "healthrecord/batchSubmitBloodGlucose";
	}

	// 删除健康日志
	public static String getIndexFileLogDelete() {
		return URL_API_HOST_HTTP + "healthrecord/deleteHealthRecord";
	}

	// 更新健康日志
	public static String getIndexFileLogUpdate() {
		return URL_API_HOST_HTTP + "healthrecord/updateHealthLog";
	}

	// 上传报告
	public static String getIndexFileReport() {
		return URL_API_HOST_HTTP + "medicalRecord/uploadMedicalRecord2";
	}

	// 上传报告图片
	public static String getIndexFileReportImage() {
		return URL_API_HOST_HTTP + "medicalRecord/uploadMedicalRecordImage2";
	}

	// 上传报告图片
	public static String getIndexFileReportList() {
		return URL_API_HOST_HTTP + "medicalRecord/getMedicalRecordList2";
	}

	/*
	 * 注册web 引导
	 */
	public static String getRegisterWebGuideUrl() {
		return "http://dl.ixinzang.com/pasm/promoteReg/index.html";
	}

	/*
	 * 获取新数据数量
	 */
	public static String getNewDataCountUrl() {
		return URL_API_HOST_HTTP + "article/getNewArticleCount2";
	}

	/*
	 * 修改昵称
	 */
	public static String getModifyNameUrl() {
		return URL_API_HOST_HTTP + "user/updateNickName";
	}

	/*
	 * 活动详情 点击是否可以进入讲座聊天
	 */
	public static String getActivityGoChatUrl() {
		return URL_API_HOST_HTTP + "groupChat/getGroupMemberInfo";
	}

	public static String getSuiXinZhenMainUrl()
	{
		return URL_API_HOST_HTTP_SUI_XIN_ZHEN_H5 + "app/OtherUserLogin";
	}

	public static String getZhuanZhenMainUrl()
	{
		return URL_API_HOST_DETAIL_HTTP + "transferHospital/login";
	}

	/*
	 * 获取服务展示数据
	 */
	public static String getHealthDataUrl() {
		return URL_API_HOST_HTTP + "pasm/getJKFWHomeData";
	}

	public static String getPeiZhenServiceInfoUrl() {
		return "http://dl.ixinzang.com/pasm/suixinzhenIntro/index.html";
	}

	public static String getZhuanZhenServiceInfoUrl() {
		return "http://dl.ixinzang.com/pasm/transferHospital/index.html";
	}

	public static String getHealthPeiZhenOrderInfoUrl() {
		return URL_API_HOST_HTTP_SUI_XIN_ZHEN + "pay/appGetWeiXinPayArguments";
	}

	public static String getHealthZhuanZhenOrderInfoUrl() {
		return URL_API_HOST_HTTP + "transferHospital/appGetWeiXinPayArguments";
	}

	public static String getHealthOrderResultUrl() {
		return URL_API_HOST_HTTP_SUI_XIN_ZHEN + "pay/appOrderQuery";
	}
	
	//获取附近药店数据
	public static String getHealthDurgDataUrl() {
		return URL_API_HOST_HTTP + "netHospital/getNearbyStation";
	}
	//获取附近药店数据
	public static String getHealthDurgDetailUrl() {
		return URL_API_HOST_HTTP + "medicine/getPasmMedicineDetail";
	}

	//获取群成员列表
	public static String getGroupMemberListUrl() {
		return URL_API_HOST_HTTP + "groupChat/getGroupMemberList"; //groupChat/getGroupMemberList
	}
	public static String getGroupMemberDetailUrl() {
		return URL_API_HOST_HTTP + "groupChat/getGroupMemberDetail";
	}
	
	/*
	 * 获取文章列表
	 */
	public static String getVideoListUrl() {
		return URL_API_HOST_HTTP + "pasm/getVideoPageData";
	}


	/*
	 * 获取视频集萃消息数量，红点
	 */
	public static String getIndexVideoPointUrl() {
		return URL_API_HOST_HTTP + "article/getNewVideoArticleCount";
	}

	public static String getTellPhoneUrl() {
		return URL_API_HOST_HTTP + "system/getPhone";
	}
}
